package me.tuyou.common;

import java.util.Date;

/**
 * @author tuyou_cd
 * @date 2021/6/24 15:17
 */
public class MyLog {

    private int deviceId;
    private String msg;
    private Date time;
    private int count = 1;

    public MyLog() {}

    public MyLog(int deviceId, String msg, Date time, int count) {
        this.deviceId = deviceId;
        this.msg = msg;
        this.time = time;
        this.count = count;
    }

    public int getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(int deviceId) {
        this.deviceId = deviceId;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    @Override
    public String toString() {
        return "MyLog{" +
                "deviceId=" + deviceId +
                ", msg='" + msg + '\'' +
                ", time=" + time +
                ", count=" + count +
                '}';
    }
}
